package yxy.cherry.battle.module.selector;

import yxy.cherry.battle.Fighter;
import yxy.cherry.battle.Team;

import java.util.HashSet;
import java.util.Set;

@TargetSelectorType(Type = 50)
public class TargetSelector_50_死掉的 extends TargetSelector {

	@Override
	public Set<Fighter> target(Fighter actor, Team team, int param1, int param2) {
		HashSet<Fighter> set = new HashSet<Fighter>();
		for (Fighter fighter : team.getFighters()) {
			if (!fighter.is活着() && !fighter.is复活过()) {
				set.add(fighter);
			}
		}
		return randomTarget(set, param1, param2);
	}
}
